package com.attms.domain.EmployeeFactory;

import java.util.HashMap;
import java.util.Map;

import com.attms.domain.AbsentSetter;
import com.attms.domain.Employee;

public class EmployeeFactory {
    AbsentSetter absentSetter = new AbsentSetter();
    public Employee createrEmployee(int job, Employee employee){
        if(job == 0 || job == 2){
            return new CommonEmployee(employee, absentSetter);
        }else if(job == 1){
            return new Dmanager(employee, absentSetter);
        }else if(job == 3){
            return new Gmanager(employee, absentSetter);
        }
        System.out.println("NO SUCH JOB");
        return null;
    }
}
